<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.global.js"></script>
</head>
<body>
    <div id="app">
        
    </div>
</body>
<script>
    let {createApp,nextTick,getCurrentInstance} = Vue;
    let {ref,reactive,readonly,computed,watch} = Vue;
    let {isRef,isReactive,isProxy,isReadonly} = Vue;
    let {shallowRef,shallowReactive,triggerRef} = Vue;

    // ifRef()   检查某个值是否为 ref。
    // isReactive()  检查一个对象是否是由 reactive() 或 shallowReactive() 创建的代理。

    var app = createApp({
        
        setup(props) {


            let zhang = reactive({
                name:"张三",
                age:18,
                info:{
                    height:173,
                    weight:65
                }
            });  

            let li = shallowReactive({
                name:"LiSi",
                age:18,
                info:{
                    height:173,
                    weight:65
                }
            }); 

          

            console.log("isReactive",isReactive(zhang));
            console.log("isReactive",isReactive(li));

            return {
                zhang,
            }
            
        },
        mounted() {
            // console.log("this",this);
        },
        watch:{
            // "zhang":function(){},
            // "zhang.age":function(){},
        }
        
    })

    app.mount("#app");








</script>
</html>